package com.ztesoft.sca.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.ztesoft.sca.dao.DataSetDao;
import com.ztesoft.sca.model.DataSetModel;

@Component
public class DataSetServiceImpl implements DataSetService{

	@Autowired
	private DataSetDao dataSetDao;
	
    @Override
    public void addDataSet(List<DataSetModel> list) throws Exception {
    	dataSetDao.addDataSet(list);
    }
    
    @Override
    public void updateDataSet(List<DataSetModel> listUpdate) throws Exception {
    	dataSetDao.updateDataSet(listUpdate);
    }
    
    @Override
    public List<DataSetModel> selectDataSetList() throws Exception {
    	return dataSetDao.selectDataSetList();
    }
}
